package nsoft.swing.window;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class DefaultMenuContext extends MenuContext{

	@Override
	public JMenuBar getMenuBar() {
		JMenuBar menuBar = new JMenuBar();
		JMenu menu = new JMenu("Test");
		menuBar.add(menu);
		JMenuItem item = new JMenuItem("Exit");
		menu.add(item);
		//item.addActionListener(new ApplicationEventListener(this,"open"));
		return menuBar;
	}

	public void open(){/*
		DefaultScreenController controller = new DefaultScreenController();
		controller.setView(new SampleView());
		controller.setModel(new SampleModel());
		applicationController.openScreen(new BaseViewModel(){

			@Override
			public String getViewModelId() {
				// TODO Auto-generated method stub
				return "Test";
			}
			
		}, controller);
	*/}
}
